import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/utils/vantinfo.js'

import 'vant/lib/index.css'
import './styles/index.scss'
import 'amfe-flexible'

import request from '@/utils/request'
import { getRelativeTime } from '@/utils/date-time.js'
import eventBus from '@/utils/eventBus'

Vue.config.productionTip = false
Vue.prototype.$request = request
Vue.prototype.$eventBus = eventBus
Vue.filter('relative', getRelativeTime)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
